package org.example.Imp;

import exam.dao.DictionaryDao;
import org.example.DictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DictionaryServiceImp implements DictionaryService {
    @Autowired
    private DictionaryDao dictionaryDao;
    @Override
    public List<String> queryAllMajor() {
        return dictionaryDao.queryAllMajor();
    }

    @Override
    public List<String> queryAllCourse() {
        return dictionaryDao.queryAllCourse();
    }
}
